<?php

$rows = array( array('材料编号','材料名称','品牌','规格','单位','最低存量','实际库存','差异') );
if($list) foreach($list as $u){
	$rows[] = array( $u['sno'], $u['name'], $u['brand'], $u['specific'], $u['unit'],
					$u['cordon'], $u['amount'], $u['cordon'] - $u['amount'],  );
}
Exporter::csv($rows, '补库报警');

?>
